package org.kl.wx.entity;

import javax.persistence.Entity;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.Table;

import org.kl.bf.entity.AuditableEntity;
import org.kl.bf.entity.Excel;

@Entity
@Table(name = "wx_material")
public class Material extends AuditableEntity {

	/**
	 * 
	 */
	private static final long serialVersionUID = -8796911530756449393L;
	@Excel(exportName = "所属公共账号", exportProperty = "appName")
	private App app;
	@Excel(exportName = "素材描述")
	private String materialDesc;
	private Integer acticleCount = 0;

	public Material() {

	}

	public Material(String id) {
		this.id = id;
	}

	@ManyToOne
	@JoinColumn(name = "app_id")
	public App getApp() {
		return app;
	}

	public void setApp(App app) {
		this.app = app;
	}

	public String getMaterialDesc() {
		return materialDesc;
	}

	public void setMaterialDesc(String materialDesc) {
		this.materialDesc = materialDesc;
	}

	public Integer getActicleCount() {
		return acticleCount;
	}

	public void setActicleCount(Integer acticleCount) {
		this.acticleCount = acticleCount;
	}

}
